PreviousNextTracker indexSee it online !

(275/302) 1843 - PHP 5.4+ short array syntax not recognized in PHPParser

jEdit 5.3, PHPParser 2.0.5, Ubuntu 12.04 (although I fully expect the bug is on all platforms) Oracle Java 1.7.0_80. The version of PHP installed on my system is 5.5.

Steps to reproduce:
1. write any code that uses the new short array syntax described in the PHP 5.4 "New features" page on php.net: http://php.net/manual/en/migration54.new-features.php
2. Open a sidekick panel and a error panel as shown in the screenshot.
3. Try to expand any class nodes as shown in the screenshot.
4. Observe the lack of class methods beyond the one in which syntax errors are found.
5. Observe the syntax errors incorrectly reported in the error list panel.

Submitted dynamodan - 2016-02-09 15:24:54.455000 Assigned
Priority 5 Labels
Status open Group None
Resolution None

Comments

2016-02-09 15:28:21.458000
dynamodan

Oops here is a better shot showing the error list at the bottom. (The first shot was a hypersearch panel.)

jEditphp54errors.png (135.2Kio)